package cn.yuyiling.jelly.qa.mongodb.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import cn.yuyiling.jelly.qa.mongodb.entity.Answer;
import java.util.List;

public interface AnswerRepository extends MongoRepository<Answer, String> {
    List<Answer> findByPathContaining(String questionId);
    List<Answer> findTop5ByOrderByLikesDesc();

}